$.extend({
	loadList:function(type,url){
		if(type == "com_a") title("金融机构","com");
		else if(type == "com_b") title("对接结果","com");
		else if(type == "bank_a") title("对接企业","bank");
		else if(type == "bank_b") title("对接结果","bank");
		function title(text,color){
			$(document).attr("title",text);
			$(".title .col-10").html(text);
			if(color == "bank") $("#header").css("background-color","#306aae");
		}
		$(".news_bar").click(function(){
			var uId = $(this).attr("value");
			$.post("ssjf/user/me.dat",{id:uId,fileRemark:'portrait'},function(result){
				result = eval("(" + result + ")");
				if(result.res == 1){
					var val = result.obj;
					$(".back").attr("onclick","javascript:location.href='ssjf/user/list.html?"+url+"'");
					$(".content-list").empty();
					var html = '<div class="row"><div class="col-12 portrait"><img src="'+val.filePath+'"></div></div>';
					html += '<div class="row"><div class="form-group"><label for="name" class="col-4 control-label">用户名称</label><div class="col-8">';
					html += '<input type="text" class="form-control" id="name" placeholder="用户名称" value="'+val.userName+'" readonly></div></div>';
					html += '<div class="form-group"><label for="telephone" class="col-4 control-label">手机号码</label><div class="col-8">';
					html += '<input type="text" class="form-control" id="telephone" value="'+val.telephone+'" readonly></div></div>';
					html += '<div class="form-group"><label for="company" class="col-4 control-label">公司名称</label><div class="col-8">';
					html += '<input type="text" class="form-control" id="company" value="'+val.company+'" readonly></div></div>';
					html += '<div class="form-group"><label for="credit" class="col-4 control-label">信用积分</label><div class="col-8">';
					html += '<input type="text" class="form-control" id="credit" value="'+val.credit+'" readonly></div></div>';
					html += '<div class="form-group"><label for="userTrade" class="col-4 control-label">用户行业</label><div class="col-8">';
					html += '<input type="text" class="form-control" id="userTrade" value="'+val.userTrade+'" readonly></div></div>';
					html += '<div class="form-group"><label for="userTrade" class="col-4 control-label">用户简介</label><div class="col-8">';
					html += '<textarea class="form-control" id="intro" row=5 readonly>'+val.intro+'</textarea></div></div>';
					html += '</div>';
					$(".content-list").append(html);
				}
			});
		});
	}
});
